home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / Include / vmHack.h < prev    next >
C/C++ Source or Header  |  1991-03-29  |  1KB  |  37 lines

  1. /*
  2.  * vmHack.h --
  3.  *
  4.  *    Temporary debugging defs to check bstring references to user memory.
  5.  *
  6.  * Copyright 1991 Regents of the University of California
  7.  * Permission to use, copy, modify, and distribute this
  8.  * software and its documentation for any purpose and without
  9.  * fee is hereby granted, provided that this copyright
  10.  * notice appears in all copies.  The University of California
  11.  * makes no representations about the suitability of this
  12.  * software for any purpose.  It is provided "as is" without
  13.  * express or implied warranty.
  14.  *
  15.  * $Header: /sprite/src/kernel/vm/RCS/vmHack.h,v 1.1 91/03/23 00:12:13 kupfer Exp $ SPRITE (Berkeley)
  16.  */
  17.  
  18. #ifndef _VMHACK
  19. #define _VMHACK
  20.  
  21. #include <cfuncproto.h>
  22. #include <sprite.h>
  23.  
  24. #define VM_CHECK_BSTRING_ACCESS    1
  25.  
  26. /* 
  27.  * If this is off, don't do the checks.  This is to avoid annoying 
  28.  * other kernel hackers and to avoid deadlock after we panic.
  29.  */
  30. extern Boolean vmDoAccessChecks;
  31.  
  32. extern void Vm_CheckAccessible _ARGS_ ((Address startAddr,
  33.                     int numBytes));
  34. extern void VmMapInit _ARGS_ ((void));
  35.  
  36. #endif /* _HEADER */
  37.